package com.plr.booker;

import java.io.IOException;
import java.util.Map;

import com.google.common.collect.ImmutableSortedMap;

public class OneWayPROD_fareRules extends OneWayPROD_LFS {


	Map<String, String> imap = ImmutableSortedMap
			.<String, String> naturalOrder()
			.put("OriginLocation", originLocation)
			.put("DestinationLocation", destinationLocation)
			.put("POS", POS).build();

	static String file = "bugLFS/OneWayPROD_FareRules.xml";

	static EndPoint ep = PROD_END_POINTS.DCAirFareRulesWS;

	
	/**
	 * Starting point for the SAAJ - SOAP Client Testing
	 */
	public static void main(String args[]) {
		OneWayPROD_fareRules obj = new OneWayPROD_fareRules();
		obj.doit();
	}

	@Override
	public EndPoint getEndPoint() {
		return ep;
	}

	@Override
	public String getFile() {
		return file;
	}
	
	@Override
	public Map<String, String> getFileParamMap() {
		return imap;
	}
	
	@Override
	String[] getNewFileParamName(ComType ct) {
		
		String[] s = {"out/FRules", ct.name(), " ", originLocation, destinationLocation, departureDateTime};
		return s;
	}
}
